﻿import java.util.Scanner;

public class code056{
	public static void main (String[] args){
		Scanner input = new Scanner(System.in);
		System.out.println("任意输入一个整数");
		int zheng =input.nextInt();
		  int m = 0;
		  while (zheng != 0) {
		   m =zheng%10;
		   System.out.print(m);
		   zheng = zheng/10;
	    }
	}
}